
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGLightChunk.h>
#include <OpenSG/OSGLightChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_LightChunk_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_LightChunk()
{
    scope* osg_LightChunkBase_scope = new scope(
    class_< osg::LightChunkBase, bases< osg::StateChunk > , boost::noncopyable >("LightChunkBase", no_init)
//        .def_readonly("DiffuseFieldMask", &osg::LightChunkBase::DiffuseFieldMask)
//        .def_readonly("AmbientFieldMask", &osg::LightChunkBase::AmbientFieldMask)
//        .def_readonly("SpecularFieldMask", &osg::LightChunkBase::SpecularFieldMask)
//        .def_readonly("PositionFieldMask", &osg::LightChunkBase::PositionFieldMask)
//        .def_readonly("DirectionFieldMask", &osg::LightChunkBase::DirectionFieldMask)
//        .def_readonly("ExponentFieldMask", &osg::LightChunkBase::ExponentFieldMask)
//        .def_readonly("CutoffFieldMask", &osg::LightChunkBase::CutoffFieldMask)
//        .def_readonly("ConstantAttenuationFieldMask", &osg::LightChunkBase::ConstantAttenuationFieldMask)
//        .def_readonly("LinearAttenuationFieldMask", &osg::LightChunkBase::LinearAttenuationFieldMask)
//        .def_readonly("QuadraticAttenuationFieldMask", &osg::LightChunkBase::QuadraticAttenuationFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::LightChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::LightChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::LightChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::LightChunkBase::getContainerSize)
        //.def("getDiffuse", (osg::Color4f& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getDiffuse, return_value_policy< copy_const_reference >())
        .def("getDiffuse", (const osg::Color4f& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getDiffuse, return_value_policy< copy_const_reference >())
        //.def("getAmbient", (osg::Color4f& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getAmbient, return_value_policy< copy_const_reference >())
        .def("getAmbient", (const osg::Color4f& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getAmbient, return_value_policy< copy_const_reference >())
        //.def("getSpecular", (osg::Color4f& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getSpecular, return_value_policy< copy_const_reference >())
        .def("getSpecular", (const osg::Color4f& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getSpecular, return_value_policy< copy_const_reference >())
        //.def("getPosition", (osg::Vec4f& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getPosition, return_value_policy< copy_const_reference >())
        .def("getPosition", (const osg::Vec4f& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getPosition, return_value_policy< copy_const_reference >())
        //.def("getDirection", (osg::Vec3f& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getDirection, return_value_policy< copy_const_reference >())
        .def("getDirection", (const osg::Vec3f& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getDirection, return_value_policy< copy_const_reference >())
        //.def("getExponent", (osg::Real32& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getExponent, return_value_policy< copy_const_reference >())
        .def("getExponent", (const osg::Real32& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getExponent, return_value_policy< copy_const_reference >())
        //.def("getCutoff", (osg::Real32& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getCutoff, return_value_policy< copy_const_reference >())
        .def("getCutoff", (const osg::Real32& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getCutoff, return_value_policy< copy_const_reference >())
        //.def("getConstantAttenuation", (osg::Real32& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getConstantAttenuation, return_value_policy< copy_const_reference >())
        .def("getConstantAttenuation", (const osg::Real32& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getConstantAttenuation, return_value_policy< copy_const_reference >())
        //.def("getLinearAttenuation", (osg::Real32& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getLinearAttenuation, return_value_policy< copy_const_reference >())
        .def("getLinearAttenuation", (const osg::Real32& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getLinearAttenuation, return_value_policy< copy_const_reference >())
        //.def("getQuadraticAttenuation", (osg::Real32& (osg::LightChunkBase::*)() )&osg::LightChunkBase::getQuadraticAttenuation, return_value_policy< copy_const_reference >())
        .def("getQuadraticAttenuation", (const osg::Real32& (osg::LightChunkBase::*)() const)&osg::LightChunkBase::getQuadraticAttenuation, return_value_policy< copy_const_reference >())
        .def("setDiffuse", &osg::LightChunkBase::setDiffuse)
        .def("setAmbient", &osg::LightChunkBase::setAmbient)
        .def("setSpecular", &osg::LightChunkBase::setSpecular)
        .def("setPosition", &osg::LightChunkBase::setPosition)
        .def("setDirection", &osg::LightChunkBase::setDirection)
        .def("setExponent", &osg::LightChunkBase::setExponent)
        .def("setCutoff", &osg::LightChunkBase::setCutoff)
        .def("setConstantAttenuation", &osg::LightChunkBase::setConstantAttenuation)
        .def("setLinearAttenuation", &osg::LightChunkBase::setLinearAttenuation)
        .def("setQuadraticAttenuation", &osg::LightChunkBase::setQuadraticAttenuation)
        .def("getBinSize", &osg::LightChunkBase::getBinSize)
        .def("copyToBin", &osg::LightChunkBase::copyToBin)
        .def("copyFromBin", &osg::LightChunkBase::copyFromBin)
        .def("create", &osg::LightChunkBase::create)
        .def("createEmpty", &osg::LightChunkBase::createEmpty)
        .def("shallowCopy", &osg::LightChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("LinearAttenuationFieldId") = (int)osg::LightChunkBase::LinearAttenuationFieldId;
    scope().attr("DiffuseFieldId") = (int)osg::LightChunkBase::DiffuseFieldId;
    scope().attr("AmbientFieldId") = (int)osg::LightChunkBase::AmbientFieldId;
    scope().attr("PositionFieldId") = (int)osg::LightChunkBase::PositionFieldId;
    scope().attr("NextFieldId") = (int)osg::LightChunkBase::NextFieldId;
    scope().attr("ConstantAttenuationFieldId") = (int)osg::LightChunkBase::ConstantAttenuationFieldId;
    scope().attr("DirectionFieldId") = (int)osg::LightChunkBase::DirectionFieldId;
    scope().attr("CutoffFieldId") = (int)osg::LightChunkBase::CutoffFieldId;
    scope().attr("QuadraticAttenuationFieldId") = (int)osg::LightChunkBase::QuadraticAttenuationFieldId;
    scope().attr("ExponentFieldId") = (int)osg::LightChunkBase::ExponentFieldId;
    scope().attr("SpecularFieldId") = (int)osg::LightChunkBase::SpecularFieldId;

    delete osg_LightChunkBase_scope;

    class_< osg::LightChunk, bases< osg::LightChunkBase > , boost::noncopyable, osg::LightChunkRefPtr >("LightChunk", no_init)
        .def("getStaticClassId", &osg::LightChunk::getStaticClassId)
        .def("changed", &osg::LightChunk::changed)
        .def("dump", &osg::LightChunk::dump, osg_LightChunk_dump_overloads_0_2())
        .def("activate", &osg::LightChunk::activate)
        .def("changeFrom", &osg::LightChunk::changeFrom)
        .def("deactivate", &osg::LightChunk::deactivate)
        .def("switchCost", &osg::LightChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::LightChunkPtr>();
    implicitly_convertible<osg::LightChunkRefPtr, osg::LightChunkPtr>();
    implicitly_convertible<osg::LightChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::LightChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::LightChunkPtr>);
}

